package com.polukeuro.app.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class ConsummerLoadErrorDataEvent extends GwtEvent<ConsummerHandler> {
	
	private static Type<ConsummerHandler> TYPE = new Type<ConsummerHandler>();

	private final String reason;
	
	public ConsummerLoadErrorDataEvent(String reason) {
		this.reason = reason;
	}

	@Override
	protected void dispatch(ConsummerHandler handler) {
		handler.loadErrorData(this);

	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<ConsummerHandler> getAssociatedType() {
		// TODO Auto-generated method stub
		return TYPE;
	}

	public String getReason() {
		return reason;
	}

	public static Type<ConsummerHandler> getType() {
		// TODO Auto-generated method stub
		return TYPE;
	}

}
